<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    <ul>
        <li></li>
        <li></li>
        <li></li>
    </ul>
    <ul>
        <li></li>
    </ul>
</div>
<script>
    //? 拿到NodeList
    const doms = document.querySelectorAll('*')
    //? 转成数组 就简单了
    console.log(Array.from(doms))
</script>
</body>
</html>
